﻿<Canvas x:Class="LFSRecord2.View.ViewportStructures.CompLayerNullViewObject"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             xmlns:lfsvstruct="clr-namespace:LFSRecord2.View.ViewportStructures"
             xmlns:lfsconv="clr-namespace:LFSRecord2.View.Converters"
             mc:Ignorable="d" 
             d:DesignHeight="300" d:DesignWidth="300" Loaded="CompLayerNullViewObject_Loaded">
    <Canvas.Resources>
        <lfsconv:IsAnimatedVisibilityConverter x:Key="isAnimatedVisibilityConverter" />
    </Canvas.Resources>
    <Path Name="PositionPath" IsHitTestVisible="False" Stroke="White" StrokeThickness="0.5" />
    <Image Name="PositionSubFrameRectangles" IsHitTestVisible="False" Stretch="None" Visibility="{Binding IsSelected, Converter={StaticResource isAnimatedVisibilityConverter}}" />
    <Image Name="MainObject" IsHitTestVisible="False" />
    <ItemsControl Name="KeyFramesControl" Loaded="KeyFramesControl_Loaded" Visibility="{Binding IsSelected, Converter={StaticResource isAnimatedVisibilityConverter}}">
        <ItemsControl.ItemsPanel>
            <ItemsPanelTemplate>
                <Grid />
            </ItemsPanelTemplate>
        </ItemsControl.ItemsPanel>

        <ItemsControl.ItemTemplate>
            <DataTemplate>
                <lfsvstruct:CompLayerKeyFrameDrawing />
            </DataTemplate>
        </ItemsControl.ItemTemplate>
    </ItemsControl>
    <lfsvstruct:ViewportObjectCrosshair x:Name="PositionCrossHair" 
                                      ID="Position"
                                      RenderTransformOrigin="0.5,0.5"
                                      MouseLeftButtonDown="Crosshair_MouseLeftButtonDown"
                                      MouseRightButtonDown="Crosshair_MouseRightButtonDown" />
</Canvas>
